package remoteRMI;

import java.rmi.Naming;

/**
 * @author: Alexander Martyushov
 */
public class MyRemoteClient {

    public static void main(String[] args){


    }

    public void go(){

        try{
            MyRemote service = (MyRemote) Naming.lookup("rmi://127.0.0.1/RemoteHello");

            String s = service.sayHello();
            System.out.println(s);
        } catch (Exception ex){

            ex.printStackTrace();
        }








    }
}
